home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Answers 2002 January
/
PC Answers January 2002.7z
/
PC Answers January 2002.bin
/
graphics
/
freepixl
/
_SETUP.1
/
Toolbar2.pxl
< prev
next >
Wrap
Text File
|
2000-12-23
|
3KB
|
109 lines
UseCoordinates(PIXEL)
UseBackGround(TRANSPARENT,192,192,192)
WinGetActive(Win$)
Set Caption$ = "Bar#2"
WinTitle(Win$,Caption$)
WinShow(Caption$,TOPMOST,Res)
WinExist(Win$,Res)
If Res = 1 Then WinShow(Win$,UNHIDE,Res)
One_Instance:
WinTitle(Win$,Caption$)
WinShow(Caption$,TOPMOST,Res)
WinVersion(Major,Minor,Build,Pack$)
If Major = 3
WinLocate(Caption$,550,55,714,142,Res)
Else
WinLocate(Caption$,550,55,722,149,Res)
Endif
DrawBackGround
WaitInput(100)
GoSub DrawButtons
InfoMenu(REMOVE)
SetMenu() { take out the menu bar completely}
Wait_for_Input:
WaitInput()
Min_NA:
WinShow(Caption$,SHOWMINNOACTIVE,Res)
Goto Wait_for_Input
Close:
End
Btn_1:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #1. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_2:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #2. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_3:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #3. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_4:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #4. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_5:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #5. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_6:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #6. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_7:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #7. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_8:
MessageBox(OK,1,EXCLAMATION,
"You pressed button #8. This can be used to start other processing or to launch other applications.",
"Floating Toolbar buttons",Res)
Goto Wait_for_Input
Btn_9:
Run("WinHlp32")
Goto Wait_for_Input
Btn_10:
MessageBox(OKCANCEL,2,EXCLAMATION,
"You pressed button #10 which has been programmed to
terminate this toolbar. Press OK to terminate, or
CANCEL to leave the toolbar visible. You can also
terminate this toolbar at any time with Alt-F4.",
"Floating Toolbar buttons",Res)
If Res = 1 Then End
Goto Wait_for_Input
DrawButtons: {Subroutine}
Button ( 1, 1, 32,32,PUSH,"1",Btn_1,
33, 1, 64,32,PUSH,"2",Btn_2,
65, 1, 96,32,PUSH,"3",Btn_3,
97, 1,128,32,PUSH,"4",Btn_4,
129, 1,160,32,PUSH,"5",Btn_5,
1,33, 32,64,PUSH,"6",Btn_6,
33,33, 64,64,PUSH,"7",Btn_7,
65,33, 96,64,PUSH,"8",Btn_8,
97,33,128,64,PUSH,"?",Btn_9,
129,33,160,64,PUSH,"&X",Btn_10)
Return